package com.yonyou.brigade.third_parties.ctripBC.service;

import com.alibaba.fastjson.JSONObject;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.brigade.third_parties.ctripBC.model.CtripBCConfig;
import com.yonyou.brigade.third_parties.ctripBC.model.CtripBCUser;
import com.baomidou.mybatisplus.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-12-24
 */
public interface ICtripBCUserService extends IService<CtripBCUser> {

    void getLoginInfo(String tenant, String org, String phone, String initPage, int tokenType, HttpServletResponse response, BriChannel briChannel , String source) throws IOException;

    /**
     * 查询需要同步的人员信息（未同步及人员信息有变动的人员）
     * @param ctripBCUsers
     * @param tenantId
     * @return
     */
    JSONObject getCtripBCUsersNeedSync(List<CtripBCUser> ctripBCUsers, CtripBCConfig config, String tenantId);
}
